package com.framework.component.resolver.test.dept;

import com.framework.component.resolver.ValueResolver;
import com.framework.component.resolver.test.model.BusinessDomainContext;
import com.framework.component.resolver.test.vo.Dept;
import org.springframework.stereotype.Component;

@Component
public class DeptResolver implements ValueResolver<BusinessDomainContext, Dept> {

    @Override
    public Dept resolve(BusinessDomainContext context) {
        return Dept.builder().deptNo("EBU0001").deptName("测试事业部").build();
    }

}
